package com.yudean.esb.dao.mds;

import com.yudean.esb.domain.mds.MdsOrganizationV;
import com.yudean.esb.mapper.mds.MdsOrganizationVMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository("mdsOrganizationVDao")
@Scope("prototype")
public class MdsOrganizationVDao {
    @Resource
    private MdsOrganizationVMapper mdsOrganizationVMapper;

    /**
     * @return
     */
    public List<MdsOrganizationV> getAllMdsOrganization() {

        List<MdsOrganizationV> list = mdsOrganizationVMapper.getAllMdsOrganization();
        if (list == null || list.size() < 1) {
            return null;
        }
        return list;
    }
}
